#ifndef _IMAGE_CONVERTOR_H_
#define _IMAGE_CONVERTOR_H_



#include <QWidget>	
#include <QPixmap>
#include <QImage>

class ImageConvertor 
{


public:
	ImageConvertor(){};
	~ImageConvertor(){};
			void convertImage(const QPixmap*,  QString,  QString&);

};


void ImageConvertor::convertImage(const QPixmap* originalImage,  const QString filePath,  QString& imageType)
{
	const char *extension = imageType.toStdString().c_str();
	QImage *qImage = new QImage(originalImage->toImage());
	qImage->save(filePath);
	delete qImage;
}


#endif